package com.example.day6_viewpager.fragment;


import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.example.day6_viewpager.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class OneFragmentTwo extends Fragment {
    ImageView imageView;

    public OneFragmentTwo() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_one_fragment_three, container, false);
        imageView = view.findViewById(R.id.iv);
        Glide.with(getContext()).load("http://b-ssl.duitang.com/uploads/item/201210/01/20121001133155_2WziQ.jpeg").into(imageView);
        return view;
    }

}
